<template>
  <div class="box">
    <div>
      <img :src="img[0]" />
      <p>{{ text[0] }}</p>
    </div>
    <div @click="fun()">
      <img :src="img[1]" />
      <p>{{ text[1] }}</p>
    </div>
    <div>
      <img :src="img[2]" />
      <p>{{ text[2] }}</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      text: ["记录缴费", "自动缴费", "待缴费"],
      img: [
        "./img/life/jiaofei01.png",
        "./img/life/jiaofei02.png",
        "./img/life/jiaofei03.png",
      ],
    };
  },
  methods: {
    fun() {
      this.$router.push("/zidong");
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  box-sizing: border-box;
  width: 100%;
  height: 1.1rem;
  display: flex;
  padding-top: 0.2rem;
  justify-content: space-around;
  background-image: linear-gradient(#2f73c9, rgb(230, 215, 250));
  border-radius: 0 0 0.2rem 0.2rem;
  text-align: center;
  > div {
    width: 1rem;
    height: 1rem;
    > p {
      line-height: 0.35rem;
    }
  }
}
</style>